﻿Public Class ThanhVienBUS
    Public Shared Function GetAllThanhVienBUS() As DataTable

        Return ThanhVienDAO.GetAllThanhVienDAO()
    End Function
    Public Shared Function GetMaThanhVienBUS() As DataTable

        Return ThanhVienDAO.GetMaThanhVienDAO()
    End Function
    Public Shared Sub InsertThanhVienBUS(ByVal ThanhVien As ThanhVienDTO)

        ThanhVienDAO.InsertThanhVienDAO(ThanhVien)

    End Sub

    Public Shared Sub UpdateThanhVienBUS(ByVal ThanhVien As ThanhVienDTO)

        ThanhVienDAO.UpdateThanhVienDAO(ThanhVien)

    End Sub
    Public Shared Sub DeleteThanhVienBUS(ByVal MaThanhVien As String)
        ThanhVienDAO.DeleteThanhVienDAO(MaThanhVien)

    End Sub
    Public Shared Function KiemTraDangNhapBUS(ByVal user As String, ByVal pass As String) As Integer
        Return ThanhVienDAO.KiemTraDangNhapDAO(user, pass)
    End Function
End Class
